@extends('Admin.layout.layout');
@section('title')
<title>LAMP178</title>
@endsection
@section('con')
   <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">用户修改</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
           
        <!-- /#page-wrapper -->
        <div class="panel panel-default">
                        <div class="panel-heading">
                            Basic Form Elements
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                 @if (count($errors) > 0)
                                <div class="alert alert-danger">
                                    <ul>
                                        @foreach ($errors->all() as $error)
                                            <li>{{ $error }}</li>
                                        @endforeach
                                    </ul>
                                </div>
                            @endif
                                <div class="col-lg-6 col-lg-offset-3">
                                    <form role="form" action="/admin/user/update" method="post" enctype="multipart/form-data">
                                        <div class="form-group">
                                            <label>用户名</label>
                                            <input class="form-control" name="username" value="{{$users->username}}">
                                           
                                        </div>
                                        <div class="form-group">
                                            <label>密码</label>
                                            <input class="form-control" name="password" type="password" value="{{$users->password}}">
                                           
                                        </div>
                                        <div class="form-group">
                                            <label>手机号</label>
                                            <input class="form-control" name="phone" type="text" value="{{$users->phone}}">
                                           
                                        </div>
                                        <div class="form-group">
                                            <label>邮箱号</label>
                                            <input class="form-control" name="phone" type="email" value="{{$users->email}}">

                                           
                                        </div>
                                        <div class="form-group">
                                            <label>权限</label>
                                           <select class="form-control" name="auth" value="{{$users->auth}}">
                                                <option>普通用户</option>
                                                <option>管理员</option>
                                            </select>
                                           
                                        </div>
                                        <div class="form-group">
                                            <label>用户头像</label>
                                            <input type="file" name="pic">
                                           <img src="{{$users->pic}}" width="100px">
                                        </div>
                                        
                                        <input type="hidden" name="id" value="{{$users->id}}">
                                        {{csrf_field()}}
                                        <button type="submit" class="btn btn-Warning">修改</button>
                                        <button type="reset" class="btn btn-Danger">重置</button>
                                    </form>
                                </div>
                              
                        <!-- /.panel-body -->
                    </div>
@endsection